package com.blog.bean;

import java.sql.Connection;
import java.sql.SQLException;

public abstract class DbTask {

    private Connection connection;

    public abstract Object run() throws SQLException;

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }
}
